<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ui" uri="http://com.am.tag" %>
<%@ include file="../common.jsp"%>
<%@ page import="com.system.dao.DictionaryDao"%>
<%
	DictionaryDao dao = new DictionaryDao();
	Map<String,Object> map = dao.getMessage();
	pageContext.setAttribute("map", map);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'userList.jsp' starting page</title>
    <script type="text/javascript">
	   function doCheck(){
	   		if($("#do").attr("checked")){
    				var dlg = Dialog.getInstance("view");
    				alert("工作愉快");
    	    		dlg.close();
    	    }else{
    	    	alert("作为一个医生，一定得愿意承担责任！！");
    	    	return false;
    	    }
 	  }

	  $().ready(function(){
		  
		 Dialog.getInstance("view").closeEx = function(){
			 doCheck();
	  	 };
	  });
    	
    </script>
  </head>
  
  <body style="overflow-x:hidden;background-color:#EDEDED">
				<div  style="position:absolute; top:0; left:0;z-index:1">
					<img width="200" height="230" src="${path}/images/2.jpg"></img>
				</div>
				<div style="position:absolute; bottom:0; right:0;z-index:1">
					<img width="200" height="280" src="${path}/images/1.jpg"></img>
				</div>
				<div style="position:absolute;padding-top:80px;padding-left:20px;z-index:2">
					<span style="font-size:15px;margin-left:30px">医生职责：${map['responsibility']}</span>
				</div>
				<div style="position:absolute;padding-top:320px;padding-right:200px;z-index:2;margin-left:20px">
					<span style="font-size:15px;margin-left:40px">疫情通报：${map['notice']}</span>
				</div>
				
				<div  style="position:absolute;bottom:30; left:30;margin-left:20px">
					<span style="font-weight:bold;font-size:18">是否愿意承担以上责任：</span><br/>
					<input type="radio" id="do" name="do" value="1"/><span style="font-weight:bold;font-size:15">愿意</span>
					<input type="radio" name="do" value="0"/><span style="font-weight:bold;font-size:15">不愿意</span><br/><br/>
					<ui:Button onclick="doCheck()"><img src="${path}/images/login.png">进入系统</ui:Button>
				</div>
  </body>
</html>